home *** CD-ROM | disk | FTP | other *** search
- property pDimBlip, pBrightBlip, pDisplaySprite
-
- on new me, dimBlip, brightBlip, displaySprite
- set pDimBlip to dimBlip
- set pBrightBlip to brightBlip
- set pDisplaySprite to displaySprite
- set the visible of sprite pDisplaySprite to 0
- updateStage()
- return me
- end
-
- on animate me
- if the puppet of sprite pDimBlip = 0 then
- puppetSprite(pDimBlip, 1)
- end if
- if the puppet of sprite pBrightBlip = 0 then
- puppetSprite(pBrightBlip, 1)
- end if
- if the locH of sprite pDimBlip > 600 then
- puppetSound(4, "Radar")
- updateStage()
- set the locH of sprite pDimBlip to 565
- set the locV of sprite pDimBlip to 385 + random(2) - random(2)
- set the locH of sprite pBrightBlip to 565
- set the locV of sprite pBrightBlip to 385 + random(3) - random(3)
- set the visible of sprite pDisplaySprite to 1
- updateStage()
- set the visible of sprite pDisplaySprite to 0
- else
- if the locH of sprite pDimBlip > 595 then
- set the locH of sprite pDimBlip to the locH of sprite pDimBlip + 1
- set the locV of sprite pDimBlip to 385 + random(2) - random(2)
- set the locH of sprite pBrightBlip to the locH of sprite pDimBlip + 1
- set the locV of sprite pBrightBlip to 385 + random(3) - random(3)
- else
- if random(5) > 3 then
- set the locH of sprite pDimBlip to the locH of sprite pDimBlip + 1
- set the locV of sprite pDimBlip to (sin(random(the locH of sprite pDimBlip)) * random(6)) + 385
- set the locH of sprite pBrightBlip to the locH of sprite pDimBlip + 1
- set the locV of sprite pBrightBlip to (sin(random(the locH of sprite pDimBlip)) * random(6)) + 385
- else
- set the locH of sprite pDimBlip to the locH of sprite pDimBlip + 1
- set the locV of sprite pDimBlip to (sin(random(the locH of sprite pDimBlip)) * random(3)) + 385
- set the locH of sprite pBrightBlip to the locH of sprite pDimBlip + 1
- set the locV of sprite pBrightBlip to (sin(random(the locH of sprite pDimBlip)) * random(3)) + 385
- end if
- end if
- end if
- updateStage()
- end
-